<?

switch ($_REQUEST['action'])
{
	case "tim-ban-do":
		include 'controller/xl_tim_kiem_tren_ban_do.php';
		break;
	
	case "upload-hinhanh":
		include 'pages/upload-hinhanh.php';
		break;
	case "sua-dia-diem-thanh-cong":
		include 'controller/xl_sua_dia_diem_thanh_cong.php';
		break;
	
	case "tao-dia-diem-thanh-cong":
		include 'controller/xl_tao_dia_diem_thanh_cong.php';
		break;
	
	case "sua-dia-diem":
		include "controller/xl_sua_dia_diem".$type;
		break;
	
	case "doi-mat-khau":
		$link = "pages/doi-mat-khau".$type;
		include $link;
		break;
	case "quen-mat-khau":
		$link = "pages/quen-mat-khau".$type;
		include $link;
		break;
		
	case "login-facebook-google-fail":
		$link = "pages/login-facebook-google-fail.php";
		include $link;
		break;
		
	case "facebook":
		include("controller/login-facebook.php");
		break;
		
	case "google":
		include("controller/login-google.php");
		break;
		
	case "gui-xac-nhan":
		$link = "pages/gui-xac-nhan".$type;
		include $link;
		break;
		
	case "gui-xac-nhan-thanh-cong":
		$link = "pages/gui-xac-nhan-thanh-cong".$type;
		include $link;
		break;
		
	case "tao-dia-diem" :
		include("controller/xl_tao_dia_diem.php"); 
		break;
		
	case "tro-giup" :
		include("pages/tro-giup".$type); 
		break;
		
	case "trang-ca-nhan" :
		
		include("controller/xl-trang-ca-nhan.php"); 
		break;
		
	case "gioi-thieu" :
		include("pages/gioi-thieu".$type); 
		break;
		
	case "lien-he":
		include("pages/lien-he".$type);
		break;
		
	case "dang-nhap":
		include("pages/dang-nhap".$type);
		break;
		
	case "dang-ky":
		include("pages/dang-ky".$type);
		break;
		
	case "dia-diem":
		$link = "controller/xl_dia_diem".$type;
		include $link;
		break;
		
	case "ket-qua-tim-kiem":
		include("controller/xl-tim-kiem.php");
		break;
		
	case "nhom-dia-diem":
		include("controller/xl_nhom_dia_diem.php");
		break;
	
	case "lien-he":
		$link = "pages/lien-he".$type;
		include $link;
		break;
		
	case "loi-nhan":
		$link = "pages/loi-nhan".$type;
		include $link;
		break;	
	
	case "dang-ky-thanh-cong":
		$link = "controller/xl_dang_ky_thanh_cong".$type;
		include $link;
		break;
		
	case "dang-ky-hoan-tat":
		$link = "pages/dang-ky-hoan-tat".$type;
		include $link;
		break;					
	
	default :
		include("controller/xl_main.php");
		break;
}


?>